using System.Collections.Generic;

using Xc.DataAccess.AepCoapCore.Models.Apis.Core;

namespace Xc.DataAccess.AepCoapCore.Models.Apis
{
    class Aep_public_product_management
    {
        //参数body: 类型json, 参数不可以为空
        //  描述:body,具体参考平台api说明
        public static string QueryPublicByPublicProductId(string appKey, string appSecret, string body)
        {
            string path = "/Aep_public_product_management/publicProducts";
            Dictionary<string, string> headers = null;
            Dictionary<string, string> param = null;
            string version = "20190507003930";

            string application = appKey;
            string key = appSecret;


            string response = AepHttpRequest.SendAepHttpRequest(path, headers, param, body, version, application, null, key, "POST");
            if (response != null)
                return response;
            return null;
        }
        //参数body: 类型json, 参数不可以为空
        //  描述:body,具体参考平台api说明
        public static string QueryPublicByProductId(string appKey, string appSecret, string body)
        {
            string path = "/Aep_public_product_management/publicProductList";
            Dictionary<string, string> headers = null;
            Dictionary<string, string> param = null;
            string version = "20190507004139";

            string application = appKey;
            string key = appSecret;


            string response = AepHttpRequest.SendAepHttpRequest(path, headers, param, body, version, application, null, key, "POST");
            if (response != null)
                return response;
            return null;
        }

    }
}
